Skip to content

Commit

Permalink
Item13897: Allow Save wizard to honor require_save
Browse files Browse the repository at this point in the history
Not sure why this doesn't fail on master,  but checking the "hint" fixes
it here.  To test,  "touch" a Conig.spec file. With the .spec file newer
than LocalSite.cfg, save should be forced even if no changes are
detected to get an updated timestamp.

tools/configure -check
   Reports that a save is required due to updated spec file
tools/configure -wizard Plugins -save
   Should save the updated LSC.
  • Loading branch information
gac410 committed Jul 17, 2016
1 parent 13b037c commit 6381456
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/lib/Foswiki/Configure/Wizards/Save.pm
Expand Up @@ -314,7 +314,9 @@ sub save {
_generateLSC( $root, $Foswiki::app->cfg->data, '', $reporter ) )
. "1;\n";

if ( $new_content ne $old_content ) {
if ( $new_content ne $old_content
|| $reporter->hint('require_save') )
{
if (DEBUG) {

# Sanity check; can we eval the new content?
Expand Down

0 comments on commit 6381456

Please sign in to comment.