Merge pull request #21005 from defrance/patch-187
FIX V8 : warning if $objectsrc not defined
This commit is contained in:
commit
bb758978ed
@ -5,7 +5,7 @@
|
||||
* Copyright (C) 2011-2020 Juanjo Menent <jmenent@2byte.es>
|
||||
* Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
|
||||
* Copyright (C) 2014-2018 Ferran Marcet <fmarcet@2byte.es>
|
||||
* Copyright (C) 2014-2018 Charlene Benke <charlies@patas-monkey.com>
|
||||
* Copyright (C) 2014-2022 Charlene Benke <charlene@patas-monkey.com>
|
||||
* Copyright (C) 2015-2016 Abbes Bahfir <bafbes@gmail.com>
|
||||
* Copyright (C) 2018 Philippe Grand <philippe.grand@atoo-net.com>
|
||||
* Copyright (C) 2020 Frédéric France <frederic.france@netlogic.fr>
|
||||
@ -65,6 +65,7 @@ $mesg = GETPOST('msg', 'alpha');
|
||||
$origin = GETPOST('origin', 'alpha');
|
||||
$originid = (GETPOST('originid', 'int') ?GETPOST('originid', 'int') : GETPOST('origin_id', 'int')); // For backward compatibility
|
||||
$note_public = GETPOST('note_public', 'restricthtml');
|
||||
$note_private = GETPOST('note_private', 'restricthtml');
|
||||
$lineid = GETPOST('line_id', 'int');
|
||||
|
||||
$error = 0;
|
||||
@ -79,6 +80,7 @@ $hookmanager->initHooks(array('interventioncard', 'globalcard'));
|
||||
|
||||
$object = new Fichinter($db);
|
||||
$extrafields = new ExtraFields($db);
|
||||
$objectsrc = null;
|
||||
|
||||
$extrafields->fetch_name_optionals_label($object->table_element);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user