[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [13999]
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [13999] |
Date: |
Wed, 23 Sep 2015 23:32:42 +0000 |
Revision: 13999
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13999
Author: nelson224
Date: 2015-09-23 23:32:42 +0000 (Wed, 23 Sep 2015)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind/rental/inc/class.uinotification.inc.php
Modified: branches/dev-syncromind/rental/inc/class.uinotification.inc.php
===================================================================
--- branches/dev-syncromind/rental/inc/class.uinotification.inc.php
2015-09-23 22:17:11 UTC (rev 13998)
+++ branches/dev-syncromind/rental/inc/class.uinotification.inc.php
2015-09-23 23:32:42 UTC (rev 13999)
@@ -202,19 +202,24 @@
public function dismiss_notification_for_all()
{
//the source notification
- $notification_id = (int)phpgw::get_var('id');
- $contract_id = (int)phpgw::get_var('contract_id');
- $contract =
rental_socontract::get_instance()->get_single($contract_id);
+ //$notification_id = (int)phpgw::get_var('id');
+ $list_notification_id = phpgw::get_var('id');
+ $list_contract_id = phpgw::get_var('contract_id');
+ //$contract_id = (int)phpgw::get_var('contract_id');
+ $contract =
rental_socontract::get_instance()->get_single($list_contract_id[0]);
$message = array();
if($contract->has_permission(PHPGW_ACL_EDIT))
{
- $result =
rental_soworkbench_notification::get_instance()->dismiss_notification_for_all($notification_id);
-
- if ($result) {
- $message['message'][] =
array('msg'=>lang('notification been removed'));
- } else {
- $message['error'][] =
array('msg'=>lang('notification not removed'));
+ //$result =
rental_soworkbench_notification::get_instance()->dismiss_notification_for_all($notification_id);
+ foreach ($list_notification_id as $notification_id)
+ {
+ $result =
rental_soworkbench_notification::get_instance()->dismiss_notification_for_all($notification_id);
+ if ($result) {
+ $message['message'][] =
array('msg'=>'notification '.$notification_id.' '.lang('has been removed'));
+ } else {
+ $message['error'][] =
array('msg'=>'notification '.$notification_id.' '.lang('not removed'));
+ }
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [13999],
Nelson Guerra <=