webcalendar

Check-in [a5464ea318]
Login

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

Overview
Comment:Report from Alex G, bug 2722. Adding an event from a category view always treated the category as private.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:a5464ea318936ac1359aad79942a5402a6d868d1da63b2d27dbe8fb86ee662fb
User & Date: ajv-899-334-8894@vsta.org 2017-05-30 04:39:47
Context
2017-05-30
04:44
Bug report/fix from Mark Blair, = versus ==, incorrectly labeling all-day events. Bug 2720. He also thought the ?: might be backwards, but it looks OK to me. check-in: ffb1667790 user: ajv-899-334-8894@vsta.org tags: master, trunk
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
Changes
Hide Diffs Unified Diffs Show Whitespace Changes Patch

Changes to edit_entry.php.

396
397
398
399
400
401
402







403
404
405
406
407
408
409
  if ( ! empty ( $cat_id ) ) {
    $res = dbi_execute ( 'SELECT cat_name FROM webcal_categories
      WHERE cat_id = ? AND ( cat_owner = ? OR cat_owner IS NULL )',
      array ( $cat_id, $real_user ) );
    if ( $res ) {
      $row = dbi_fetch_row ( $res );
      $catNames = $row[0];







      $catList = $cat_id;
    }
  }

  // Reminder settings.
  $reminder_offset = ( $REMINDER_WITH_DATE == 'N' ? $REMINDER_OFFSET : 0 );








>
>
>
>
>
>
>







396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
  if ( ! empty ( $cat_id ) ) {
    $res = dbi_execute ( 'SELECT cat_name FROM webcal_categories
      WHERE cat_id = ? AND ( cat_owner = ? OR cat_owner IS NULL )',
      array ( $cat_id, $real_user ) );
    if ( $res ) {
      $row = dbi_fetch_row ( $res );
      $catNames = $row[0];

      // Make sure global categories are treated as such
      if (empty($categories[$cat_id]['cat_owner'])) {
	$cat_id = - abs($cat_id);
	$catNames .= '*';
      }

      $catList = $cat_id;
    }
  }

  // Reminder settings.
  $reminder_offset = ( $REMINDER_WITH_DATE == 'N' ? $REMINDER_OFFSET : 0 );