Changeset 668


Ignore:
Timestamp:
Dec 30, 2004, 9:36:48 AM (19 years ago)
Author:
plg
Message:
  • bug fixed on setting commentable property for a single category (bug in template and in query generation)
  • bug on determining whether an element is commentable or not depending on categories it belongs to
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_modify.php

    r649 r668  
    6363  if ( isset( $_POST['uploadable'] ) )
    6464    $query.= ", uploadable = '".$_POST['uploadable']."'";
     65
     66  if ( isset( $_POST['commentable'] ) )
     67    $query.= ", commentable = '".$_POST['commentable']."'";
    6568
    6669  if ( isset( $_POST['associate'] ) )
  • trunk/picture.php

    r648 r668  
    785785  // the picture is commentable if it belongs at least to one category which
    786786  // is commentable
    787   if ($category['commentable'])
     787  if ($category['commentable'] == 'true')
    788788  {
    789789    $page['show_comments'] = true;
  • trunk/template/default/admin/cat_modify.tpl

    r646 r668  
    6262      <td><strong>{L_EDIT_COMMENTABLE}&nbsp;:</strong><br /><span class="small">{L_EDIT_COMMENTABLE_INFO}</span></td>
    6363      <td class="row1">
    64           <input type="radio" class="radio" name="commentable" value="false" {COMMENTABLE_TRUE} />{L_YES}&nbsp;&nbsp;
    65           <input type="radio" class="radio" name="commentable" value="true" {COMMENTABLE_FALSE} />{L_NO}
     64          <input type="radio" class="radio" name="commentable" value="true" {COMMENTABLE_TRUE} />{L_YES}&nbsp;&nbsp;
     65          <input type="radio" class="radio" name="commentable" value="false" {COMMENTABLE_FALSE} />{L_NO}
    6666      </td>
    6767    </tr>
Note: See TracChangeset for help on using the changeset viewer.