Skip to content

Commit

Permalink
#40 [CompetitorPrice] fix: setEventMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Aug 29, 2024
1 parent f6516b1 commit 4ef7c14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions view/competitorprice_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@
}

$noback = 1;
$object->setCategories('setCategories');
require_once DOL_DOCUMENT_ROOT . '/core/actions_addupdatedelete.inc.php';

if ($action == 'confirm_clone' && $permissiontoadd) {
setEventMessages('', $langs->trans('RecordCreatedSuccessfully'));
header("Location: " . $_SERVER['PHP_SELF'] . '?id=' . $id); // Open record of new object
exit;
}
Expand Down Expand Up @@ -465,7 +465,7 @@
print '<td class="center nowraponall">';
if ($permissiontoadd) {
print '<a class="editfielda marginrightonly" href="' . $_SERVER['PHP_SELF'] . '?id=' . $object->id . '&socid=' . $competitorPriceDetail->fk_soc . '&action=update_competitor_price&rowid=' . $competitorPriceDetail->id . '&token=' . newToken() . '">' . img_edit() . '</a>';
print '<a class="marginrightonly" href="' . $_SERVER['PHP_SELF'] . '?id=' . $object->id . '&socid=' . $competitorPriceDetail->fk_soc . '&action=confirm_clone&confirm=yes&rowid=' . $competitorPriceDetail->id . '&token=' . newToken() . '">' . img_picto($langs->trans('Clone'), 'clone') . '</a>';
print '<a class="marginrightonly wpeo-loader" href="' . $_SERVER['PHP_SELF'] . '?id=' . $object->id . '&socid=' . $competitorPriceDetail->fk_soc . '&action=confirm_clone&confirm=yes&rowid=' . $competitorPriceDetail->id . '&token=' . newToken() . '">' . img_picto($langs->trans('Clone'), 'clone') . '</a>';
print '<a href="' . $_SERVER['PHP_SELF'] . '?id=' . $object->id . '&socid=' . $competitorPriceDetail->fk_soc . '&action=deleteProductCompetitorPrice&rowid=' . $competitorPriceDetail->id . '&token=' . newToken() . '">' . img_picto($langs->trans('Remove'), 'delete') . '</a>';
}
print '</td>';
Expand Down

0 comments on commit 4ef7c14

Please sign in to comment.