File: 1034_remove_superfluous__get_post__call_from__save_object.patch

package info (click to toggle)
gosa 2.7.4%2Breloaded3-16
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 38,716 kB
  • sloc: php: 87,789; perl: 14,364; xml: 4,987; javascript: 4,127; sh: 887; pascal: 306; sql: 263; python: 162; makefile: 76
file content (16 lines) | stat: -rw-r--r-- 795 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: class_sortableListing: Remove superfluous get_post() call from_ save_object()
Author: Christian Schwamborn <cs@imap.architektur.tu-darmstadt.de>

--- gosa-2.7.4+reloaded2.a/gosa-core/include/class_sortableListing.inc	2017-10-17 15:59:31.000000000 +0000
+++ gosa-2.7.4+reloaded2.b/gosa-core/include/class_sortableListing.inc	2018-01-23 07:50:54.616057235 +0000
@@ -425,10 +425,8 @@
         $this->action = "";
         if (strpos($this->acl, 'd') !== false){
             foreach ($_POST as $key => $value) {
-                $value = get_post($key);
                 if (preg_match('/^del_'.$this->id.'_([0-9]+)$/', $key, $matches)) {
 
-
                     if(!isset($this->mapping[$matches[1]])) return;
 
                     $this->active_index= $this->mapping[$matches[1]];