|
15 | 15 | } |
16 | 16 |
|
17 | 17 | if (isset($_GET['chat_id']) && is_numeric($_GET['chat_id']) && ((($chat = erLhcoreClassModelChat::fetch($_GET['chat_id'])) instanceof erLhcoreClassModelChat && isset($_GET['hash']) && $chat->hash == $_GET['hash'] && $chat->status !== erLhcoreClassModelChat::STATUS_CLOSED_CHAT) || ($form->form_type == erLhAbstractModelForm::FORM_TYPE_INTERNAL && erLhcoreClassUser::instance()->hasAccessTo('lhform', 'fill_private')))) { |
| 18 | + $replace_array = array( |
| 19 | + '{hash}' => (isset($_GET['hash']) ? $_GET['hash'] : ''), |
| 20 | + '{chat_id}' => $_GET['chat_id'], |
| 21 | + ); |
| 22 | + $tpl->set('replace_array',$replace_array); |
18 | 23 | $tpl->setArray(array( |
19 | 24 | 'hash' => (isset($_GET['hash']) ? $_GET['hash'] : ''), |
20 | 25 | 'chat_id' => $_GET['chat_id'], |
21 | 26 | )); |
22 | 27 | } if (isset($_POST['chat_id']) && is_numeric($_POST['chat_id']) && ((($chat = erLhcoreClassModelChat::fetch($_POST['chat_id'])) instanceof erLhcoreClassModelChat && isset($_POST['hash']) && $chat->hash == $_POST['hash'] && $chat->status !== erLhcoreClassModelChat::STATUS_CLOSED_CHAT) || ($form->form_type == erLhAbstractModelForm::FORM_TYPE_INTERNAL && erLhcoreClassUser::instance()->hasAccessTo('lhform', 'fill_private')))) { |
| 28 | + $replace_array = array( |
| 29 | + '{hash}' => (isset($_POST['hash']) ? $_POST['hash'] : ''), |
| 30 | + '{chat_id}' => $_POST['chat_id'], |
| 31 | + ); |
| 32 | + $tpl->set('replace_array',$replace_array); |
23 | 33 | $tpl->setArray(array( |
24 | 34 | 'hash' => (isset($_POST['hash']) ? $_POST['hash'] : ''), |
25 | 35 | 'chat_id' => $_POST['chat_id'], |
|
41 | 51 | $tpl->set('content',$form->content_rendered); |
42 | 52 |
|
43 | 53 | if (erLhcoreClassFormRenderer::isCollected()) { |
44 | | - erLhcoreClassFormRenderer::storeCollectedInformation($form, erLhcoreClassFormRenderer::getCollectedInfo(), erLhcoreClassFormRenderer::getCustomFields()); |
45 | | -} |
| 54 | + erLhcoreClassFormRenderer::storeCollectedInformation($form, erLhcoreClassFormRenderer::getCollectedInfo(), erLhcoreClassFormRenderer::getCustomFields()); |
| 55 | +} |
46 | 56 |
|
47 | 57 | $tpl->set('form',$form); |
48 | 58 |
|
|
0 commit comments