This commit is contained in:
@@ -12,7 +12,9 @@ class TlaSuggestion extends Model
|
||||
|
||||
protected $fillable = ['acronym', 'hint', 'language', 'context', 'submitter'];
|
||||
|
||||
public static function ApproveTla() {
|
||||
$tla = new Tla();
|
||||
public static function ApproveTla(TlaSuggestion $record) {
|
||||
$tla = new Tla($record->toArray());
|
||||
$record->delete();
|
||||
$tla->save();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user