Event record creation bugfix
When I18N strings (name and template) were added to the event definition table, some of the code was not modified.
This commit is contained in:
parent
7e3d8a558a
commit
c8f19a4c06
1 changed files with 4 additions and 2 deletions
|
@ -111,7 +111,8 @@ BEGIN
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
INSERT INTO evdef_temp( evdef_id , evfld_typespec )
|
INSERT INTO evdef_temp( evdef_id , evfld_typespec )
|
||||||
VALUES( _id , _prio::TEXT || ' , ' || _adj::TEXT );
|
VALUES( _id , _prio::TEXT || ',' || _adj::TEXT
|
||||||
|
|| ',' || _name_id || ',' || _template_id );
|
||||||
RETURN 'OK';
|
RETURN 'OK';
|
||||||
END;
|
END;
|
||||||
$evdef_start$;
|
$evdef_start$;
|
||||||
|
@ -475,7 +476,8 @@ BEGIN
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
_qstr := 'INSERT INTO events.event_definitions (' ||
|
_qstr := 'INSERT INTO events.event_definitions (' ||
|
||||||
'evdef_id , evdef_priority , evdef_adjustable' ||
|
'evdef_id , evdef_priority , evdef_adjustable , ' ||
|
||||||
|
'evdef_name_id , evdef_template_id' ||
|
||||||
') VALUES ( $1 , ' || _rec.evfld_typespec || ');';
|
') VALUES ( $1 , ' || _rec.evfld_typespec || ');';
|
||||||
|
|
||||||
BEGIN
|
BEGIN
|
||||||
|
|
Reference in a new issue