diff --git a/ChangeLog b/ChangeLog index ffffb180..f343fcd4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22281,3 +22281,6 @@ creating a new Service entry. * Fixed a bug in rdadmin(1) that could cause a segfault when creating a new Schedule Code entry. +2021-08-15 Fred Gleason + * Fixed a regression in rdadmin(1) that threw a SQL error when + attempting to create a new Replicator entry. diff --git a/lib/rdreplicatorlistmodel.cpp b/lib/rdreplicatorlistmodel.cpp index ea714fea..2cb0310d 100644 --- a/lib/rdreplicatorlistmodel.cpp +++ b/lib/rdreplicatorlistmodel.cpp @@ -242,7 +242,7 @@ void RDReplicatorListModel::updateRowLine(int line) if(linefirst()) { updateRow(line,q); diff --git a/rdadmin/add_replicator.cpp b/rdadmin/add_replicator.cpp index 21dec3fe..39561106 100644 --- a/rdadmin/add_replicator.cpp +++ b/rdadmin/add_replicator.cpp @@ -107,7 +107,8 @@ void AddReplicator::okData() } sql=QString("insert into `REPLICATORS` set ")+ - "`NAME`='"+RDEscapeString(repl_name_edit->text())+"'"; + "`NAME`='"+RDEscapeString(repl_name_edit->text())+"',"+ + QString().sprintf("`TYPE_ID`=%u",RDReplicator::TypeCitadelXds); q=new RDSqlQuery(sql); if(!q->isActive()) { QMessageBox::warning(this,tr("Replicator Exists"),tr("A replicator with that name already exists!"));