Changeset View
Changeset View
Standalone View
Standalone View
src/applications/pholio/controller/PholioMockEditController.php
| Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | if ($request->isFormPost()) { | ||||
| $mock_xactions[$type_name] = $v_name; | $mock_xactions[$type_name] = $v_name; | ||||
| $mock_xactions[$type_desc] = $v_desc; | $mock_xactions[$type_desc] = $v_desc; | ||||
| $mock_xactions[$type_status] = $v_status; | $mock_xactions[$type_status] = $v_status; | ||||
| $mock_xactions[$type_view] = $v_view; | $mock_xactions[$type_view] = $v_view; | ||||
| $mock_xactions[$type_edit] = $v_edit; | $mock_xactions[$type_edit] = $v_edit; | ||||
| $mock_xactions[$type_cc] = array('=' => $v_cc); | $mock_xactions[$type_cc] = array('=' => $v_cc); | ||||
| if (!strlen($request->getStr('name'))) { | if (!strlen($request->getStr('name'))) { | ||||
| $e_name = 'Required'; | $e_name = pht('Required'); | ||||
| $errors[] = pht('You must give the mock a name.'); | $errors[] = pht('You must give the mock a name.'); | ||||
| } | } | ||||
| $file_phids = $request->getArr('file_phids'); | $file_phids = $request->getArr('file_phids'); | ||||
| if ($file_phids) { | if ($file_phids) { | ||||
| $files = id(new PhabricatorFileQuery()) | $files = id(new PhabricatorFileQuery()) | ||||
| ->setViewer($user) | ->setViewer($user) | ||||
| ->withPHIDs($file_phids) | ->withPHIDs($file_phids) | ||||
| ▲ Show 20 Lines • Show All 291 Lines • Show Last 20 Lines | |||||