Merge branch 'sprint/fixbug_hufangzhou_19260' into 'master'

* Fix bug #19260.

See merge request easycorp/zentaopms!2849
This commit is contained in:
王怡栋
2022-04-11 08:02:24 +00:00
+3
View File
@@ -629,6 +629,9 @@ class installModel extends model
$table = str_replace('`zt_', $this->config->db->name . '.`zt_', $table);
$table = str_replace('zt_', $this->config->db->prefix, $table);
if(!$this->dbh->query($table)) return false;
/* Make the deleted user of demo data undeleted.*/
if($this->config->edition == 'open') $this->dao->update(TABLE_USER)->set('deleted')->eq('0')->where('deleted')->eq('1')->exec();
}
$config->module = 'common';