2011-06-14 Sergio Martin <sergio.martin@artica.es>
* include/functions_events.php operation/events/events.php: Fixed multiple validation when events are grouped git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4443 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
c4aa6c0e8a
commit
aa9507a0ac
|
@ -1,3 +1,9 @@
|
|||
2011-06-14 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/functions_events.php
|
||||
operation/events/events.php: Fixed multiple validation
|
||||
when events are grouped
|
||||
|
||||
2011-06-14 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/functions_graph.php
|
||||
|
|
|
@ -157,10 +157,13 @@ function events_validate_event ($id_event, $similars = true, $comment = '', $new
|
|||
$id_event = (array) safe_int ($id_event, 1);
|
||||
|
||||
/* We must validate all events like the selected */
|
||||
|
||||
if ($similars) {
|
||||
foreach ($id_event as $id) {
|
||||
$id_event = array_merge ($id_event, events_get_similar_ids ($id));
|
||||
}
|
||||
|
||||
$id_event = array_unique($id_event);
|
||||
}
|
||||
|
||||
db_process_sql_begin ();
|
||||
|
|
|
@ -349,6 +349,7 @@ $(document).ready( function() {
|
|||
var comment = $('#textarea_comment_'+id).val();
|
||||
var select_validate = $('#select_validate_'+id).val(); // 1 validate, 2 in process
|
||||
var checkbox_standby_alert = $('#checkbox-standby-alert-'+id).attr('checked');
|
||||
var similars = $('#group_rep').val();
|
||||
|
||||
if(!select_validate) {
|
||||
select_validate = 1;
|
||||
|
@ -377,7 +378,7 @@ $(document).ready( function() {
|
|||
"id" : id,
|
||||
"comment" : comment,
|
||||
"new_status" : select_validate,
|
||||
"similar" : <?php echo ($group_rep ? 1 : 0) ?>
|
||||
"similars" : similars
|
||||
},
|
||||
function (data, status) {
|
||||
if (data == "ok") {
|
||||
|
|
Loading…
Reference in New Issue