Explorar el Código

Update LabsSettings controller

Daniel Supernault hace 6 años
padre
commit
32c0019209
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      app/Http/Controllers/Settings/LabsSettings.php

+ 3 - 1
app/Http/Controllers/Settings/LabsSettings.php

@@ -53,7 +53,9 @@ trait LabsSettings {
 			if($profile->is_suggestable == false) {
 				$profile->is_suggestable = true;
 				$changes = true;
-				SuggestionService::set($profile->id);
+				if($profile->statuses->count() > 0) {
+					SuggestionService::set($profile->id);
+				}
 			} 
 		} else {
 			$profile->is_suggestable = false;