[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [16942] booking: set season active to 0 when setting
From: |
sigurdne |
Subject: |
[Fmsystem-commits] [16942] booking: set season active to 0 when setting status = archived |
Date: |
Wed, 2 Aug 2017 05:03:36 -0400 (EDT) |
Revision: 16942
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16942
Author: sigurdne
Date: 2017-08-02 05:03:35 -0400 (Wed, 02 Aug 2017)
Log Message:
-----------
booking: set season active to 0 when setting status = archived
Modified Paths:
--------------
trunk/booking/inc/class.uiseason.inc.php
trunk/booking/setup/phpgw_no.lang
Modified: trunk/booking/inc/class.uiseason.inc.php
===================================================================
--- trunk/booking/inc/class.uiseason.inc.php 2017-08-01 14:14:22 UTC (rev
16941)
+++ trunk/booking/inc/class.uiseason.inc.php 2017-08-02 09:03:35 UTC (rev
16942)
@@ -219,6 +219,18 @@
{
array_set_default($_POST, 'resources', array());
$season = array_merge($season,
extract_values($_POST, $this->fields));
+
+ switch ($season['status'])
+ {
+ // case 'PLANNING':
+ case 'ARCHIVED':
+ $season['active'] = 0;
+ break;
+ default:
+ $season['active'] = 1;
+ break;
+ }
+
$season['from_'] = ($season['from_']) ?
date("Y-m-d", phpgwapi_datetime::date_to_timestamp($season['from_'])) :
$season['from_'];
$season['to_'] = ($season['to_']) ?
date("Y-m-d", phpgwapi_datetime::date_to_timestamp($season['to_'])) :
$season['to_'];
$errors = $this->bo->validate($season);
Modified: trunk/booking/setup/phpgw_no.lang
===================================================================
--- trunk/booking/setup/phpgw_no.lang 2017-08-01 14:14:22 UTC (rev 16941)
+++ trunk/booking/setup/phpgw_no.lang 2017-08-02 09:03:35 UTC (rev 16942)
@@ -706,3 +706,5 @@
select date booking no Velg dato
start date booking no Start dato
toggle show inactive booking no Veklse på å vise inaktive
+season edit booking no Endre sesong
+season show booking no Vis sesong
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [16942] booking: set season active to 0 when setting status = archived,
sigurdne <=