Boa tarde.
Tenho um form com 2 CJuiDatePicker, apenas um deles é inserido na bd, que poderá estar a causar isto?
<?php $this->widget('zii.widgets.jui.CJuiDatePicker',
array(
'model'=>'$model',
'name'=>'Reparacao[data_recb]',
'language'=>'pt',
'value'=>$model->data_recb,
'htmlOptions'=>array('size'=>10, 'style'=>'width:80px !important'),
'options'=>array(
'showButtonPanel'=>true,
'changeYear'=>true,
'changeYear'=>true,
'dateFormat' => 'yy-mm-dd',
),
)
);
; ?>
<?php echo $form->labelEx($model,'data_entrega'); ?>
<?php $this->widget('zii.widgets.jui.CJuiDatePicker',
array(
'model'=>'$model',
'name'=>'Reparacao[data_entrega]',
'language'=>'pt',
'value'=>$model->data_entrega,
'htmlOptions'=>array('size'=>10, 'style'=>'width:80px !important'),
'options'=>array(
'showButtonPanel'=>true,
'changeYear'=>true,
'changeYear'=>true,
'dateFormat' => 'yy-mm-dd'
),
)
);
; ?>
Estão os 2 iguais sem qualquer problema e no model na rulles está tudo direito.