diff --git a/services/client/common/models/recovery.js b/services/client/common/models/recovery.js index 1386b37549..c456cb9a4a 100644 --- a/services/client/common/models/recovery.js +++ b/services/client/common/models/recovery.js @@ -1,4 +1,6 @@ module.exports = function(Self) { require('../methods/recovery/filter')(Self); require('../methods/recovery/hasActiveRecovery')(Self); + + Self.validatesPresenceOf('period', {message: 'Period cannot be blank'}); }; diff --git a/services/loopback/common/locale/es.json b/services/loopback/common/locale/es.json index d267a3464a..e2f5766206 100644 --- a/services/loopback/common/locale/es.json +++ b/services/loopback/common/locale/es.json @@ -26,5 +26,6 @@ "NO_AGENCY_AVAILABLE": "NO_AGENCY_AVAILABLE", "Only manager can change the credit": "Solo el gerente puede cambiar el credito de este cliente", "Name cannot be blank": "El nombre no puede estar en blanco", - "Phone cannot be blank": "El teléfono no puede estar en blanco" + "Phone cannot be blank": "El teléfono no puede estar en blanco", + "Period cannot be blank": "El periodo no puede estar en blanco" } \ No newline at end of file