Frontend: Hinweis entfernt keine Freigeschaltet-Meldung mehr im Formular und Ergebnis; Inhalte bleiben sichtbar ohne Banner.
All checks were successful
Deploy Workshop-Wahlen (DEV / PROD) / deploy (push) Successful in 13s
All checks were successful
Deploy Workshop-Wahlen (DEV / PROD) / deploy (push) Successful in 13s
This commit is contained in:
@@ -6,7 +6,7 @@ add_shortcode('konficastle_workshop_ergebnis', function($atts) {
|
||||
global $wpdb;
|
||||
$wahl = $wpdb->get_row("SELECT * FROM {$wpdb->prefix}kc_wahlen WHERE id=$wahl_id");
|
||||
if(!$wahl) return '';
|
||||
if($wahl->freigegeben) return '<div style="color:#e12b2b;font-weight:bold;"></div>';
|
||||
// Keine Warnmeldung im Frontend anzeigen, Ergebnisse weiterhin darstellen
|
||||
|
||||
// Workshops für diese Wahl holen
|
||||
$workshops = $wpdb->get_results(
|
||||
|
||||
@@ -16,7 +16,8 @@ add_shortcode('konficastle_workshopwahl', function($atts) {
|
||||
|
||||
$wahl = $wpdb->get_row($wpdb->prepare("SELECT * FROM {$wpdb->prefix}kc_wahlen WHERE id=%d", $wahl_id));
|
||||
if(!$wahl || !$wahl->freigegeben) {
|
||||
return $debug_output . '<div class="kc-error-msg">Die Workshopwahl ist aktuell nicht freigeschaltet.</div>';
|
||||
// Keine Fehlermeldung im Frontend anzeigen; Formular ausblenden
|
||||
return '';
|
||||
}
|
||||
|
||||
// Ermittle erlaubte Workshops pro Phase für diese Wahl.
|
||||
|
||||
Reference in New Issue
Block a user