Removed most of the validation on the job model
This commit is contained in:
parent
3877b7a933
commit
4b904673a2
|
|
@ -300,7 +300,6 @@ class JobsController extends AppController {
|
|||
|
||||
function ajax_edit() {
|
||||
if(!empty($this->data)) {
|
||||
//print_r($this->data);
|
||||
if ($this->Job->save($this->data)) {
|
||||
echo "SUCCESS";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,16 +2,18 @@
|
|||
class Job extends AppModel {
|
||||
|
||||
var $name = 'Job';
|
||||
|
||||
|
||||
var $validate = array(
|
||||
'title' => array('notempty'),
|
||||
|
||||
'enquiry_id' => array('numeric'),
|
||||
|
||||
'date_order_received' => array('date'),
|
||||
/* 'date_order_received' => array('date'),
|
||||
|
||||
'domestic_freight_paid_by' => array('notempty'),
|
||||
'sale_category' => array('notempty'),
|
||||
'shipment_category' => array('notempty')
|
||||
'shipment_category' => array('notempty') */
|
||||
);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -89,9 +89,9 @@
|
|||
if(currencyID == 2) {//Export Sale. AUD
|
||||
$('.export_sale_aud').attr("readonly",false);
|
||||
$(".export_sale_aud").addClass("highlighted");
|
||||
$(".aust_sale_aud").addClass("highlighted");
|
||||
|
||||
$(".aust_sale_fc").attr("readonly",true);
|
||||
$(".aust_sale_aud").attr("readonly",true);
|
||||
$('.export_sale_fc').attr("readonly",true);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue