Merge 74d739f7ac17
This commit is contained in:
commit
03cbf184f3
|
@ -76,9 +76,9 @@ public class RequestValidator implements ModelValidator, EventHandler
|
||||||
{
|
{
|
||||||
MRequest r = (MRequest) po;
|
MRequest r = (MRequest) po;
|
||||||
if (type == TYPE_BEFORE_NEW || type == TYPE_BEFORE_CHANGE)
|
if (type == TYPE_BEFORE_NEW || type == TYPE_BEFORE_CHANGE)
|
||||||
beforeSaveRequest(r);
|
beforeSaveRequest(r, type == TYPE_BEFORE_NEW);
|
||||||
else if (type == TYPE_AFTER_NEW || type == TYPE_AFTER_CHANGE)
|
else if (type == TYPE_AFTER_NEW || type == TYPE_AFTER_CHANGE)
|
||||||
afterSaveRequest(r);
|
afterSaveRequest(r, type == TYPE_AFTER_NEW);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -89,10 +89,10 @@ public class RequestValidator implements ModelValidator, EventHandler
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String beforeSaveRequest(MRequest r)
|
public static String beforeSaveRequest(MRequest r, boolean newRecord)
|
||||||
{
|
{
|
||||||
// New
|
// New
|
||||||
if (r.is_new())
|
if (newRecord)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
// Change Log
|
// Change Log
|
||||||
|
@ -208,10 +208,10 @@ public class RequestValidator implements ModelValidator, EventHandler
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String afterSaveRequest(MRequest r)
|
public static String afterSaveRequest(MRequest r, boolean newRecord)
|
||||||
{
|
{
|
||||||
// Initial Mail
|
// Initial Mail
|
||||||
if (r.is_new())
|
if (newRecord)
|
||||||
sendNotices(r, new ArrayList<String>());
|
sendNotices(r, new ArrayList<String>());
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue