Merge pull request #12651 from frederic34/patch-17

The variable $db seems to be never defined
This commit is contained in:
Laurent Destailleur 2019-12-09 13:03:11 +01:00 committed by GitHub
commit 816f2075fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@ abstract class ActionsCardCommon
public function assign_values(&$action, $id = 0, $ref = '')
{
// phpcs:enable
global $conf, $langs, $user, $mysoc, $canvas;
global $conf, $langs, $db, $user, $mysoc, $canvas;
global $form, $formadmin, $formcompany;
if ($action == 'add' || $action == 'update') $this->assign_post($action);