josehernandezfintecheandomx commented on code in PR #2279:
URL: https://github.com/apache/fineract/pull/2279#discussion_r849595407
##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/dataqueries/service/ReadWriteNonCoreDataServiceImpl.java:
##########
@@ -938,9 +963,9 @@ public void updateDatatable(final String datatableName,
final JsonCommand comman
final boolean isConstraintApproach =
this.configurationDomainService.isConstraintApproachEnabledForDatatables();
if (!StringUtils.isBlank(entitySubType)) {
- final String updateLegalFormSQL = "update x_registered_table
SET entity_subtype='" + entitySubType
+ String updateLegalFormSQL = "update x_registered_table SET
entity_subtype='" + entitySubType
+ "' WHERE registered_table_name = '" + datatableName
+ "'";
- this.jdbcTemplate.execute(updateLegalFormSQL); // NOSONAR
+ this.jdbcTemplate.execute(updateLegalFormSQL);
Review Comment:
Done!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]