Module CustomFields Dev: Difference between revisions

Jump to navigation Jump to search
(→‎Should do: added 2 more should do)
Line 518: Line 518:
* ficheinter (Intervention module) custom fields will stay in create mode just after create page is submitted (this is because of the $action that is not standard - $action=edit or something).
* ficheinter (Intervention module) custom fields will stay in create mode just after create page is submitted (this is because of the $action that is not standard - $action=edit or something).
* after the edition or creation of a custom field for product lines, the fields in the creation zone are still prefilled with the last entered values of the custom fields (they should be empty, but the problem is that CustomFields automatically reload the last values entered in case there is an error, and the problem lies in the fact that after the creation/edition of a product line, there is absolutely no way to know if the page was reloaded due to an error or if everything is OK). Usually with other modules and mechanisms of Dolibarr, after creation/edition, the page is reloaded and $action is changed, but here it doesn't.
* after the edition or creation of a custom field for product lines, the fields in the creation zone are still prefilled with the last entered values of the custom fields (they should be empty, but the problem is that CustomFields automatically reload the last values entered in case there is an error, and the problem lies in the fact that after the creation/edition of a product line, there is absolutely no way to know if the page was reloaded due to an error or if everything is OK). Usually with other modules and mechanisms of Dolibarr, after creation/edition, the page is reloaded and $action is changed, but here it doesn't.
Maybe solution: look at the $object->$error or $object->$errors? but this is not a safe way, the variable name may change, or the error may be emptied...
Maybe solution: look at the $object->$error or $object->$errors? but this is not a safe way, the variable name may change, or the error may be emptied, or may not even be set altogether depending on the error...
 


== Never/Maybe one day ==
== Never/Maybe one day ==
439

edits

Navigation menu