$adjustment = Yii::$app->request->post('adjustment');
if ($adjustment && in_array(Admin::findOne(Yii::$app->user->id)->group_id, Motivation::getAdjustmentEditors())) {
- return implode('<br>', ['Вы не можете вносить корректировки']);
+ return implode('<br>', ['Вы не можете вносить корректировки']);
}
$fileName = $adjustment ? '/template_adjustment_temp.xlsx' : '/template_plan_temp.xlsx';
body: formData,
});
const text = await response.text();
+ console.log(text)
if (text === 'not ok') {
info.innerHTML = '<span style="color:red">Не смог загрузить файл</span>';
} else if (text.replaceAll('<br>', '') === '') {