Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Mandatory fields
 
Notifications
Clear all

Mandatory fields

5 Posts
2 Users
0 Reactions
3,925 Views
Evgueni Kolossov
(@ekolossov)
Posts: 566
Contributor
Topic starter
 
[#1470]

Hi,
Can you please suggest how we can make some fields in Tickets mandatory:
• Urgency
• Product
• Original Version
• Criticality
• Priority
Regards,
Evgueni


 
Posted : 14 Nov 2013 18H44
(@babynus)
Posts: 14952
Member Admin
 

In /model/Ticket.php, add a value in the $_fieldsAttributes array so that attribute "required" is defined for mandatory fields.

for instance, for product :
"idProduct"=>"required",


 
Posted : 14 Nov 2013 19H05
Evgueni Kolossov
(@ekolossov)
Posts: 566
Contributor
Topic starter
 

Some problems: Product ans Original version allow empty value which system consider valid, so "required" is not work in this cases. For Criticality and Priority empty value is not allowed, so system picking up as default THE LAST value from the list


 
Posted : 15 Nov 2013 18H53
(@babynus)
Posts: 14952
Member Admin
 

Product ans Original version allow empty value which system consider valid, so "required" is not work in this cases

If you set attribute "required", empty value will not be allowed any more.

For Criticality and Priority empty value is not allowed, so system picking up as default THE LAST value from the list

Default is always the Fisrt item in the list, sorted on the "order" field.


 
Posted : 16 Nov 2013 14H51
Evgueni Kolossov
(@ekolossov)
Posts: 566
Contributor
Topic starter
 

Not quite what expected but will do...


 
Posted : 18 Nov 2013 11H28
Share:

Scroll to Top