src/Service/Prize.php 1 location
|
@@ 56-58 (lines=3) @@
|
53 |
|
$form->bind($prize); |
54 |
|
|
55 |
|
// If the identifier has not been set, I use the title to create one. |
56 |
|
if (empty($data['identifier']) && !empty($data['title'])) { |
57 |
|
$data['identifier'] = $data['title']; |
58 |
|
} |
59 |
|
|
60 |
|
$form->setData($data); |
61 |
|
|
src/Service/Game.php 1 location
|
@@ 177-179 (lines=3) @@
|
174 |
|
} |
175 |
|
|
176 |
|
// If the identifier has not been set, I use the title to create one. |
177 |
|
if ((! isset($data['identifier']) || empty($data['identifier'])) && isset($data['title'])) { |
178 |
|
$data['identifier'] = $data['title']; |
179 |
|
} |
180 |
|
|
181 |
|
$form->setData($data); |
182 |
|
|