backdrop-contrib / coder_upgrade

Helps automate some/most of the work required to upgrade a module from Drupal to Backdrop 1.x
GNU General Public License v2.0
4 stars 7 forks source link

Extra whitespace in variable_get() results in "dynamic value..." in .json #48

Open bugfolder opened 3 years ago

bugfolder commented 3 years ago

Extra whitespace in a variable_get() call, e.g.,

  return variable_get('coder_upgrade_test_snack', 'garibaldi' ); // note extra space before last paren

leads to a "dynamic value..." entry in the config json file. (But it doesn't crash, like https://github.com/backdrop-contrib/coder_upgrade/issues/47 does).

As with https://github.com/backdrop-contrib/coder_upgrade/issues/47, the easy workaround is to do a search-and-replace to remove the extra whitespace before running Coder Upgrade.