Skip to content

Commit

Permalink
Modules SynergiesTech: Correction task Dolibarr#1039
Browse files Browse the repository at this point in the history
  • Loading branch information
kkhelifa-opendsi authored and Alexis LAURIER committed Jan 6, 2021
1 parent 59c86fc commit 880d456
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,7 @@ function doActions($parameters, &$object, &$action, $hookmanager)
elseif ($action == 'rm_reset_data_in_session' && $user->rights->requestmanager->creer && $object->statut_type == RequestManager::STATUS_TYPE_IN_PROGRESS
) {
dol_include_once('/requestmanager/class/html.formrequestmanagermessage.class.php');
$formrequestmanagermessage = new FormRequestManagerMessage($db, $object);
$formrequestmanagermessage = new FormRequestManagerMessage($this->db, $object);
$formrequestmanagermessage->clear_datas_in_session();

header('Location: ' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=stpremessage&messagemode=init#formmessagebeforetitle');
Expand Down Expand Up @@ -1520,7 +1520,7 @@ function doActions($parameters, &$object, &$action, $hookmanager)
$date_creation = $object->date_creation;
if ($selectedActionCommId > 0) {
require_once DOL_DOCUMENT_ROOT . '/comm/action/class/actioncomm.class.php';
$actioncomm = new ActionComm($db);
$actioncomm = new ActionComm($this->db);
$actioncomm->fetch($selectedActionCommId);
$date_creation = $actioncomm->datep;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
$actionComm = new ActionComm($db);
$actionComm->fetch($selectedActionCommId);
$selectedSocIdOrigin = $actionComm->socid;
$selectedActionJs = 'change_socid_origin';

dol_include_once('/advancedictionaries/class/dictionary.class.php');
$source_dictionary = Dictionary::getDictionary($db, 'requestmanager', 'requestmanagersource');
Expand Down

0 comments on commit 880d456

Please sign in to comment.