Changeset 257


Ignore:
Timestamp:
11/10/09 11:39:51 (11 years ago)
Author:
sander
Message:

Fixed some bugs in the new galleries

Location:
trunk/server/www/app
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/www/app/controllers/galleries_controller.php

    r256 r257  
    114114                        if ($this->Gallery->save($this->data)) { 
    115115                                $this->Session->setFlash(__('The Gallery has been saved', true)); 
    116                                 $this->redirect(array('action' => 'view', $this->Gallery->data['Gallery']['slug'])); 
     116                                $gallery = $this->Gallery->read('slug', $this->Gallery->id); 
     117                                $this->redirect(array('action' => 'view', $gallery['Gallery']['slug'])); 
    117118                        } else { 
    118119                                $this->Session->setFlash(__('The Gallery could not be saved. Please, try again.', true)); 
  • trunk/server/www/app/views/galleries/edit.ctp

    r256 r257  
    1111                <?php echo $form->input('id');?> 
    1212                <?php echo $form->input('name');?> 
    13                 <?php echo $form->input('group_id', array('label' => __('Who can edit this gallery', true), 'empty' => __('Only me', true)));?> 
     13                <?php echo $form->input('group_id', array('type' => 'select', 'label' => __('Who can edit this gallery', true), 'empty' => __('Only me', true)));?> 
    1414                <div id="wmd-button-bar"></div> 
    1515                <?php echo $form->input('description', array('id' => 'wmd-input'));?> 
Note: See TracChangeset for help on using the changeset viewer.