mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 10:22:18 +00:00
WIP api controller backend; WIP adapting queries to new db schema;
This commit is contained in:
@@ -177,7 +177,7 @@ class FilterCmptLib
|
|||||||
$session = $this->getSession();
|
$session = $this->getSession();
|
||||||
|
|
||||||
// If session is NOT empty -> a filter was already loaded
|
// If session is NOT empty -> a filter was already loaded
|
||||||
if ($session != null)
|
if (false && $session != null)
|
||||||
{
|
{
|
||||||
// Retrieve the filterId stored in the session
|
// Retrieve the filterId stored in the session
|
||||||
$sessionFilterId = $this->_getSessionElement(FilterCmptLib::FILTER_ID);
|
$sessionFilterId = $this->_getSessionElement(FilterCmptLib::FILTER_ID);
|
||||||
@@ -221,7 +221,7 @@ class FilterCmptLib
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If the session is empty -> first time that this filter is loaded
|
// If the session is empty -> first time that this filter is loaded
|
||||||
if ($session == null)
|
if (true || $session == null)
|
||||||
{
|
{
|
||||||
// Load filter definition data from DB
|
// Load filter definition data from DB
|
||||||
$definition = $this->_loadDefinition(
|
$definition = $this->_loadDefinition(
|
||||||
@@ -565,6 +565,7 @@ class FilterCmptLib
|
|||||||
getAuthPersonId()
|
getAuthPersonId()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
// If filters were loaded
|
// If filters were loaded
|
||||||
if (hasData($filters))
|
if (hasData($filters))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -124,6 +124,8 @@ export const CoreFilterAPIs = {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
getFilter: function(wsParams) {
|
getFilter: function(wsParams) {
|
||||||
|
console.log(wsParams)
|
||||||
|
debugger
|
||||||
return CoreRESTClient.get(
|
return CoreRESTClient.get(
|
||||||
'components/Filter/getFilter',
|
'components/Filter/getFilter',
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user