webcalendar

Check-in [e00697f245]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Bug report from Eberhard Kummerle, some users unable to save preferences. Patch supplied.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:e00697f245d52b583e733de4d2e96e39eaaf803d8923101f916a3ed8631e5a6f
User & Date: ajv-899-334-8894@vsta.org 2017-05-30 04:34:54
Context
2017-05-30
04:39
Report from Alex G, bug 2722. Adding an event from a category view always treated the category as private. check-in: a5464ea318 user: ajv-899-334-8894@vsta.org tags: master, trunk
04:34
Bug report from Eberhard Kummerle, some users unable to save preferences. Patch supplied. check-in: e00697f245 user: ajv-899-334-8894@vsta.org tags: master, trunk
04:29
Code comment from "Hamdi_C", issue 2729 at SF Webcalendar. Reuse of variable name interferes with correct deltion of repeating events. check-in: 54a93e819b user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to pref.php.

81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
       sort ( $themes );
       closedir ($dh);
   }
}

if ( ! empty ( $_POST ) && empty ( $error ) ) {
  $t = $_POST['pref_THEME'];
  if ( ! empty ( $t ) ) {
    $valid = false;
    foreach ( $themes as $theme ) {
      if ( $theme == $t )
        $valid = true;
    }
    if ( ! $valid )
      $error = translate('Invalid theme');







|







81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
       sort ( $themes );
       closedir ($dh);
   }
}

if ( ! empty ( $_POST ) && empty ( $error ) ) {
  $t = $_POST['pref_THEME'];
  if ( !empty($t) && ($t != 'none') ) {
    $valid = false;
    foreach ( $themes as $theme ) {
      if ( $theme == $t )
        $valid = true;
    }
    if ( ! $valid )
      $error = translate('Invalid theme');