Skip to content

Instantly share code, notes, and snippets.

View orthagh's full-sized avatar
🦇

Alexandre Delaunay orthagh

🦇
View GitHub Profile
diff --git a/inc/ticket.class.php b/inc/ticket.class.php
index bc911c0..5a5e09e 100644
--- a/inc/ticket.class.php
+++ b/inc/ticket.class.php
@@ -201,7 +201,7 @@ class PluginBehaviorsTicket {
$msg = sprintf(__('%1$s (%2$s)'), __("Can't save, item have been updated", "behaviors"),
getUserName($ticket->fields['users_id_lastupdater']).', '.
- Html::convDateTime($config->fields['date_mod']));
+ Html::convDateTime($ticket->fields['date_mod']));
diff --git a/inc/dropdown.class.php b/inc/dropdown.class.php
index b4ddd98..7b9de08 100644
--- a/inc/dropdown.class.php
+++ b/inc/dropdown.class.php
@@ -190,6 +190,7 @@ class Dropdown {
if ($params['comments']) {
$comment_id = Html::cleanId("comment_".$params['name'].$params['rand']);
$options_tooltip = array('contentid' => $comment_id,
+ 'linkid' => "link".$comment_id,
'display' => false);
Index: ajax/dropdownValue.php
===================================================================
--- ajax/dropdownValue.php (révision 21867)
+++ ajax/dropdownValue.php (copie de travail)
@@ -547,9 +547,24 @@
$paramscomment = array('value' => '__VALUE__',
'table' => $table);
- Ajax::updateItemOnSelectEvent("dropdown_".$_POST["myname"].$_POST["rand"],
- "comment_".$_POST["myname"].$_POST["rand"],