Skip to content

Commit

Permalink
PRESIDECMS-2957 Dynamic form persistence issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sebduggan committed Oct 23, 2024
1 parent 7415f0c commit f43e581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/services/forms/FormsService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ component displayName="Forms service" {
public boolean function formExists( required string formName, boolean checkSiteTemplates=true ) {
var forms = _getForms();
var existsInMemory = StructKeyExists( forms, arguments.formName ) || ( arguments.checkSiteTemplates && StructKeyExists( forms, _getSiteTemplatePrefix() & arguments.formName ) );
var isDynamic = !existsInMemory && ReFindNoCase( "^dynamicform\-", arguments.formName );
var isDynamic = !existsInMemory && ReFindNoCase( "^dynamicform\-[a-z0-9]$", arguments.formName );

if ( isDynamic ) {
return _lazyLoadOldDynamicForm( arguments.formName );
Expand Down

0 comments on commit f43e581

Please sign in to comment.