[freeside-commits] branch FREESIDE_4_BRANCH updated. 6229b35780da2f5593202aa1f0a61f31eb8fa9fa

Ivan Kohler ivan at freeside.biz
Wed Sep 7 16:50:36 PDT 2022


The branch, FREESIDE_4_BRANCH has been updated
       via  6229b35780da2f5593202aa1f0a61f31eb8fa9fa (commit)
      from  f2d69a9f2797d7b2b071c99792938d4f04b18920 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6229b35780da2f5593202aa1f0a61f31eb8fa9fa
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Sep 7 16:50:36 2022 -0700

    fix password_history upgrade on new DBs

diff --git a/FS/FS/password_history.pm b/FS/FS/password_history.pm
index 13d16010d..1915a2185 100644
--- a/FS/FS/password_history.pm
+++ b/FS/FS/password_history.pm
@@ -173,6 +173,7 @@ sub _upgrade_schema {
     push @where, "
       ( $fk IS NOT NULL AND NOT EXISTS(SELECT 1 FROM $table WHERE $table.$key = $fk) )";
   }
+  return '' unless @where;
   my @recs = qsearch({
       'table'     => 'password_history',
       'extra_sql' => ' WHERE ' . join(' AND ', @where),

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/password_history.pm | 1 +
 1 file changed, 1 insertion(+)




More information about the freeside-commits mailing list