diff options
| author | Zog | 2018-01-31 11:17:02 +0100 | 
|---|---|---|
| committer | Zog | 2018-01-31 11:17:02 +0100 | 
| commit | c463c3a950246c4c2660ce7df1c1ea8f2acbe578 (patch) | |
| tree | 2cbe8d5ae1f686c336afac4957f5ae01401ec054 | |
| parent | bb62bc2028f142e953035680b2483ee6029711ae (diff) | |
| download | chouette-core-5750-non-commercial-stop-areas.tar.bz2 | |
Refs #5750; Remove useless validation5750-non-commercial-stop-areas
| -rw-r--r-- | app/javascript/vehicle_journeys/actions/index.js | 17 | 
1 files changed, 1 insertions, 16 deletions
| diff --git a/app/javascript/vehicle_journeys/actions/index.js b/app/javascript/vehicle_journeys/actions/index.js index b01158212..4a4ec371d 100644 --- a/app/javascript/vehicle_journeys/actions/index.js +++ b/app/javascript/vehicle_journeys/actions/index.js @@ -382,23 +382,8 @@ const actions = {    },    validate : (dispatch, vehicleJourneys, next) => { -    let valid = true -    let vj, vjas -    for (vj of vehicleJourneys){ -      vj.errors = false -      for(vjas of vj.vehicle_journey_at_stops){ -        vjas.errors = null -        if (vjas.area_kind == "non_commercial" && parseInt(vjas.departure_time.hour) == 0 && parseInt(vjas.departure_time.minute) == 0){ -          vjas.errors = "Champ requis" -          vj.errors = true -          valid = false -        } -      } -    }      dispatch(actions.didValidateVehicleJourneys(vehicleJourneys)) -    if(valid){ -      actions.submitVehicleJourneys(dispatch, vehicleJourneys, next) -    } +    actions.submitVehicleJourneys(dispatch, vehicleJourneys, next)    },    didValidateVehicleJourneys : (vehicleJourneys) => ({ | 
