You are not logged in.
Pages: 1
Topic closed
Hello,
I have problem in entities administration with the view Notifications.
When I try to save this view and that the field Enable notifications by default is Inheritance of the parent entity value, I've got the following error At least one field has an incorrect value: Enable notifications by default.
So it's impossible to save my updates.
I use the last GLPI version (0.85.4) and I view in the Roadmap but this bug isn't listed.
Thank you for your answer.
Offline
Hello,
Indeed, I could reproduce this bug.
In inc/entity.class.php, comparing to another field of the same type (eg 'Alarm on contracts whose possible values are also Yes/No/inheritance), it seems that the type of the 'Enable notifs by default' field is incorrect.
Type is 'bool' although it should be 'specific'.
I think that type 'bool' only accepts Yes/No, thus generating an error when value is inheritance.
I've made a test, replacing 'bool' by 'specific' in line 570 of inc/entity.class.php and it works much better.
I cannot guarantee there is no other impact.
The core developers team will have to investigate.
Regards,
Benoit Le Rohellec
blerohellec@tlsconsulting.eu
www.tlsconsulting.eu
Offline
I've created a GLPI issue refering to this post.
According to my tests, the changes in this tab (of any field) are correctly saved. The only thing you can't do is to go back to value 'Inheritance' for 'Enable notifs ...'
Regards
Benoit Le Rohellec
blerohellec@tlsconsulting.eu
www.tlsconsulting.eu
Offline
I have no problem in 0.85.5 svn or in 0.90 beta.
On which entity are you during modification? sub-entity?
Which fields are you trying to update?
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
Correction validated.
Issue to close.
Thx a lot.
Benoit Le Rohellec
blerohellec@tlsconsulting.eu
www.tlsconsulting.eu
Offline
Thanks for this test. I close this post.
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
Pages: 1
Topic closed