Popravki napak zaradi preklopa na hash ankete
This commit is contained in:
parent
aace61b391
commit
dee7fa766e
@ -50,7 +50,8 @@ class SurveyAdminSettings {
|
||||
|
||||
if ((isset ($_REQUEST['anketa']) && $_REQUEST['anketa'] > 0) || (isset ($anketa) && $anketa > 0)) {
|
||||
$this->anketa = (isset ($_REQUEST['anketa']) && $_REQUEST['anketa'] > 0) ? $_REQUEST['anketa'] : $anketa;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
// nekje se uporablja tudi brez IDja ankete!!!
|
||||
//die("SAS: SID missing!");
|
||||
}
|
||||
|
@ -2726,7 +2726,7 @@ class SurveyDataDisplay{
|
||||
if ($quick_view == false) {
|
||||
//echo '<input type="submit" value="Shrani" /> ';<a href="#" onclick="document.forms['myFormName'].submit(); return false;">...</a>
|
||||
echo '<span class="floatRight spaceLeft" ><div class="buttonwrapper"><a class="ovalbutton ovalbutton_orange" href="#" onclick="document.forms[\'vnos\'].submit(); return false;"><span>' . $lang['save'] . '</span></a></div></span>';
|
||||
echo '<span class="floatRight spaceRight" ><div class="buttonwrapper"><a class="ovalbutton ovalbutton_gray" href="../survey/index.php?anketa='.self::$sid.'&a='.A_COLLECT_DATA.'"><span>Nazaj na podatke</span></a></div></span>';
|
||||
echo '<span class="floatRight spaceRight" ><div class="buttonwrapper"><a class="ovalbutton ovalbutton_gray" href="../survey/index.php?anketa='.self::$sid.'&a='.A_COLLECT_DATA.'"><span>' . $lang['srv_back_to_data'] . '</span></a></div></span>';
|
||||
|
||||
#echo '</form>'."\n";
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ class SurveyAdvancedParadataLog {
|
||||
// Privatni construct, ki ga 1x poklice getInstance
|
||||
private function __construct () {
|
||||
|
||||
if(isset($_GET['m']) && $_GET['m'] == 'quick_edit')
|
||||
if((isset($_GET['m']) && $_GET['m'] == 'quick_edit') || (isset($_GET['t']) && $_GET['t'] == 'postprocess'))
|
||||
return false;
|
||||
|
||||
$anketa_hash = $_REQUEST['anketa'];
|
||||
@ -45,7 +45,7 @@ class SurveyAdvancedParadataLog {
|
||||
// Vrne ce zbiramo napredne parapodatke
|
||||
public function paradataEnabled(){
|
||||
|
||||
if(isset($_GET['m']) && $_GET['m'] == 'quick_edit')
|
||||
if((isset($_GET['m']) && $_GET['m'] == 'quick_edit') || (isset($_GET['t']) && $_GET['t'] == 'postprocess'))
|
||||
return false;
|
||||
|
||||
return $this->collectParadata;
|
||||
|
@ -2206,6 +2206,7 @@ $lang = array (
|
||||
"forma_alert_if" => "V anketi so dodani pogoji!",
|
||||
"srv_forma_send" => "Pošlji",
|
||||
"srv_glasovanje_naslov" => "",
|
||||
"srv_back_to_data" => "Nazaj na podatke",
|
||||
"srv_omogoci" => "Omogoči",
|
||||
"srv_omogoceno" => "omogočena",
|
||||
"srv_onemogoceno" => "onemogočena",
|
||||
|
@ -2192,6 +2192,7 @@ $lang = array (
|
||||
"forma_alert_if" => "This survey includes conditions!",
|
||||
"srv_forma_send" => "Send",
|
||||
"srv_glasovanje_naslov" => "",
|
||||
"srv_back_to_data" => "Back to data",
|
||||
"srv_omogoci" => "Enable.",
|
||||
"srv_omogoceno" => "enabled",
|
||||
"srv_onemogoceno" => "disabled",
|
||||
|
@ -1699,7 +1699,7 @@ class BodyController extends Controller
|
||||
|
||||
// Preverimo ce gre za prvo popravljanje podatkov in avtomatsko ustvarimo arhiv podatkov ce je potrebno
|
||||
//ob_flush(); // ZAKAJ JE TUKAJ TA FLUSH? KER POTEM NE DELA NAKNADNO UREJANJE CE IMA ANKETA LOOPE
|
||||
$sas = new SurveyAdminSettings();
|
||||
$sas = new SurveyAdminSettings($action=0, $anketa=get('anketa'));
|
||||
$sas->checkFirstDataChange();
|
||||
|
||||
// Updatamo tracking (ker gre za editiranje odgovorov)
|
||||
|
Loading…
x
Reference in New Issue
Block a user