File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
opengrok-web/src/main/java/org/opengrok/web/api/v1/controller Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -311,13 +311,20 @@ public void set(
311
311
// Set the property.
312
312
ClassUtil .setFieldValue (project , field , value );
313
313
314
- // Refresh repositories for this project as well.
314
+ // Refresh field values for project's repositories for this project as well.
315
315
List <RepositoryInfo > riList = env .getProjectRepositoriesMap ().get (project );
316
316
if (riList != null ) {
317
317
for (RepositoryInfo ri : riList ) {
318
318
Repository repo = getRepository (ri , CommandTimeoutType .RESTFUL );
319
319
320
- // set the property
320
+ // Set the property if there is one.
321
+ try {
322
+ ClassUtil .getFieldValue (repo , field );
323
+ } catch (IOException e ) {
324
+ // ignore
325
+ continue ;
326
+ }
327
+
321
328
ClassUtil .setFieldValue (repo , field , value );
322
329
}
323
330
}
You can’t perform that action at this time.
0 commit comments