- There were cases that dol_eval() would break the whole system.
-That was happening in case of using a new version plugin on an old version dolibarr. New plugin validates through isModActive() instead of $conf->moduleName->enabled. Even if you were deactivating the plugin, or totally delete it, the records were still on database for menu, so there were no obvious solution. This update adds a backwards compatibility, makes doli more stable and counterparts the use of eval, making it more safe.
- Use of eval is not bad, as well there are techniques in any project that are project-related useful and smart. For example, Linux kernel uses GOTO. But in such cases, there needs to be a safety net.
-I found out this after a lot of trouble, I hope this small fix will save other developers.
👍
|
||
|---|---|---|
| .. | ||
| ajax | ||
| boxes | ||
| class | ||
| data | ||
| db | ||
| filemanagerdol | ||
| js | ||
| lib | ||
| login | ||
| menus | ||
| modules | ||
| tpl | ||
| triggers | ||
| actions_addupdatedelete.inc.php | ||
| actions_builddoc.inc.php | ||
| actions_changeselectedfields.inc.php | ||
| actions_comments.inc.php | ||
| actions_dellink.inc.php | ||
| actions_extrafields.inc.php | ||
| actions_fetchobject.inc.php | ||
| actions_lineupdown.inc.php | ||
| actions_linkedfiles.inc.php | ||
| actions_massactions.inc.php | ||
| actions_printing.inc.php | ||
| actions_sendmails.inc.php | ||
| actions_setmoduleoptions.inc.php | ||
| actions_setnotes.inc.php | ||
| antispamimage.php | ||
| bookmarks_page.php | ||
| commonfieldsinexport.inc.php | ||
| commonfieldsinimport.inc.php | ||
| customreports.php | ||
| datepicker.php | ||
| doxygen.php | ||
| extrafieldsinexport.inc.php | ||
| extrafieldsinimport.inc.php | ||
| get_info.php | ||
| get_menudiv.php | ||
| multicompany_page.php | ||
| photos_resize.php | ||
| search_page.php | ||
| search.php | ||
| tools.php | ||
| website.inc.php | ||