Skip to content
Snippets Groups Projects
Commit 12f7a8b2 authored by Gerald Salin's avatar Gerald Salin
Browse files

Merge branch 'issue#228' into 'master'

Merge branch issue#228 with master

See merge request !138
parents b750dbe3 4111f259
No related branches found
No related tags found
1 merge request!138Merge branch issue#228 with master
......@@ -126,11 +126,11 @@ class NG6
}
} elseif ($unhide_level == 'run') {
foreach($tab_ids as $id => $value) {
tx_nG6_db::unhide_run($value, true);
tx_nG6_db::unhide_run($value, false);
}
} elseif ($unhide_level == 'analysis') {
foreach($tab_ids as $id => $value) {
tx_nG6_db::unhide_analysis($value, true);
tx_nG6_db::unhide_analysis($value, false);
}
}
return GeneralUtility::makeInstance(HtmlResponse::class,1);
......
......@@ -1525,16 +1525,16 @@ static function get_project_runs($project_id, $get_hidden=TRUE, $orderby='', $li
static function unhide_project($p_id) {
// First change all project runs
$project_runs = tx_nG6_db::get_project_runs($p_id);
foreach($project_runs as $run_id => $run_values) {
tx_nG6_db::unhide_run($run_values['id']);
}
//$project_runs = tx_nG6_db::get_project_runs($p_id);
//foreach($project_runs as $run_id => $run_values) {
// tx_nG6_db::unhide_run($run_values['id']);
//}
// Then all project analysis
$project_analysis = tx_nG6_db::get_project_analysis($p_id);
foreach($project_analysis as $analysis_id => $analysis_values) {
tx_nG6_db::unhide_analysis($analysis_values['id']);
}
//$project_analysis = tx_nG6_db::get_project_analysis($p_id);
//foreach($project_analysis as $analysis_id => $analysis_values) {
// tx_nG6_db::unhide_analysis($analysis_values['id']);
//}
// Finaly change the project itself
$GLOBALS['TYPO3_DB']-> exec_UPDATEquery ('tx_nG6_project', 'uid='.$p_id, array('hidden' => '0'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment