fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [16965] more on controller


From: sigurdne
Subject: [Fmsystem-commits] [16965] more on controller
Date: Thu, 10 Aug 2017 05:37:56 -0400 (EDT)

Revision: 16965
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=16965
Author:   sigurdne
Date:     2017-08-10 05:37:56 -0400 (Thu, 10 Aug 2017)
Log Message:
-----------
more on controller

Modified Paths:
--------------
    trunk/controller/inc/class.uiprocedure.inc.php
    trunk/controller/setup/phpgw_no.lang

Modified: trunk/controller/inc/class.uiprocedure.inc.php
===================================================================
--- trunk/controller/inc/class.uiprocedure.inc.php      2017-08-09 13:31:08 UTC 
(rev 16964)
+++ trunk/controller/inc/class.uiprocedure.inc.php      2017-08-10 09:37:56 UTC 
(rev 16965)
@@ -199,6 +199,12 @@
                                $procedure = new controller_procedure();
                        }
 
+                       if ($procedure->get_procedure_id())
+                       {
+                               phpgwapi_cache::message_set(lang('Do not edit 
archived version' ), 'error');
+                               $GLOBALS['phpgw']->redirect_link('/index.php', 
array('menuaction' => 'controller.uiprocedure.view',
+                                       'id' => $procedure_id));
+                       }
 
                        if (isset($_POST['save_procedure'])) // The user has 
pressed the save button
                        {
@@ -596,7 +602,10 @@
                                        'table_header' => $table_header,
                                );
 
-                               if ($procedure->get_end_date())
+                               /*
+                                * This is not the latest version
+                                */
+                               if ($procedure->get_procedure_id())
                                {
                                        $data['inactive'] = true;
                                }

Modified: trunk/controller/setup/phpgw_no.lang
===================================================================
--- trunk/controller/setup/phpgw_no.lang        2017-08-09 13:31:08 UTC (rev 
16964)
+++ trunk/controller/setup/phpgw_no.lang        2017-08-10 09:37:56 UTC (rev 
16965)
@@ -393,4 +393,5 @@
 lang_control_mandatory_location        controller      no      PĂ„krevd 
lokasjonsvalg
 Control types  controller      no      Kontrolltyper
 location       controller      no      Lokasjon
-document types controller      no      Dokumenttyper
\ No newline at end of file
+document types controller      no      Dokumenttyper
+Do not edit archived version   controller      no      Du kan ikke endre 
arkiverte versjoner
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]