Add fallback blank strings for status and timestamp, fix #29
This commit is contained in:
parent
53f80ef75e
commit
87bfca1b71
@ -88,8 +88,8 @@
|
||||
var name = template.target.toLowerCase();
|
||||
if ( name === 'afc submission' ) {
|
||||
submissionTemplates.push( {
|
||||
status: AFCH.getAndDelete( template.params, '1').toLowerCase(),
|
||||
timestamp: AFCH.getAndDelete( template.params, 'ts' ),
|
||||
status: ( AFCH.getAndDelete( template.params, '1' ) || '' ).toLowerCase(),
|
||||
timestamp: AFCH.getAndDelete( template.params, 'ts' ) || '',
|
||||
params: template.params
|
||||
} );
|
||||
} else if ( name === 'afc comment' ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user