For running J!5.1 you must https://fabrikar.com/forums/index.php?wiki/update-from-github/ or include the new file manually https://fabrikar.com/forums/index.php?threads/joomla-5-1-and-fabrik-cannot-find-files-error.54473/post-285151 See also Announcements
Please see our announcement here.
No (Maybe I'm totally wrong and there has been a change in 3.1 which I don't know; or something in your calc code is preventing stroring)Can you explain this?
$a = (int)'{fab_cbd___tournament_raw}';
$b = '{fab_cbd___assoc1_raw}';
$c = '{fab_cbd___assoc2_raw}';
$d = '{fab_cbd___name1_raw}';
$e = '{fab_cbd___name2_raw}';
$id = (int)'{fab_cbd___id_raw}';
$wl_rmv = '{fab_cbd___wl_remove_raw}';
$query1 = "SELECT id FROM fab_cbd WHERE tournament = $a AND assoc1 = '$b' AND assoc2 = '$c'";
$db = & JFactory::getDBO();
$db->setQuery( $query1 );
$user = $db->loadColumn();
$query2 = "SELECT organizer FROM fab_tournaments WHERE id = $a";
$db = & JFactory::getDBO();
$db->setQuery( $query2 );
$xx = $db->loadResult();
$query3 = "SELECT wl_cd FROM fab_tournaments WHERE id = $a";
$db = & JFactory::getDBO();
$db->setQuery( $query3 );
$wl = $db->loadResult();
sort($user, SORT_NUMERIC);
$keyz = array_search($id, $user);
if (($keyz > 0) && ($xx != $b) && ($xx != $c) && ($d != '') && ($e != '') && ($wl != 'Yes') && ($wl_rmv != 'Yes'))
{return 'WL';}
else if (($keyz < 1) && ($xx != $b) && ($xx != $c) && ($d != '') && ($e != '') && ($wl != 'Yes') && ($wl_rmv != 'Yes'))
{return '';}
else if (($keyz > 5) && ($xx == $b) && ($xx == $c) && ($d != '') && ($e != '') && ($wl != 'Yes') && ($wl_rmv != 'Yes'))
{return 'WL';}
else
{return '';}