• Resolved tplanche

    (@tplanche)


    Hi Kevon,

    I have just started to use your plugin, and I love it! I have noticed, however, one annoying little issue with it: the abstract ‘Status’ field does not update on the Dashboard page. When I change, for instance, the status from ‘Pending’ to ‘Approved’, it still shows ‘Pending’ on the Dashboard page.

    When I add:
    <?php var_dump($abstract) ?>
    to wpabstracts_dashboard.php and it returns:
    object(stdClass)#4940 (16) { [“abstract_id”]=> string(1) “1” [“title”]=> string(16) “My Test Abstract” [“text”]=> string(61) “This is a fake abstract, just to test the WP Abstracts plugin” [“event”]=> string(1) “1” [“topic”]=> string(5) “Codes” [“status”]=> string(1) “1” [“author”]=> NULL [“author_email”]=> NULL [“author_affiliation”]=> NULL [“presenter”]=> string(6) “Thomas” [“presenter_email”]=> string(18) “tplanche@triumf.ca” [“presenter_preference”]=> string(29) “pre-recorded talk” [“keywords”]=> string(0) “” [“submit_by”]=> string(1) “2” [“submit_date”]=> string(19) “2020-07-01 00:31:59” [“modified_date”]=> NULL }

    When I do the same thing on the Edit Abstract page (wpabstracts_editAbstract.php) I get, for the very same abstract:
    object(stdClass)#263 (16) { [“abstract_id”]=> string(1) “1” [“title”]=> string(16) “My Test Abstract” [“text”]=> string(61) “This is a fake abstract, just to test the WP Abstracts plugin” [“event”]=> string(1) “1” [“topic”]=> string(5) “Codes” [“status”]=> string(1) “3” [“author”]=> NULL [“author_email”]=> NULL [“author_affiliation”]=> NULL [“presenter”]=> string(6) “Thomas” [“presenter_email”]=> string(18) “tplanche@triumf.ca” [“presenter_preference”]=> string(29) “pre-recorded talk (recommend)” [“keywords”]=> string(0) “” [“submit_by”]=> string(1) “2” [“submit_date”]=> string(19) “2020-07-01 00:31:59” [“modified_date”]=> NULL }

    Note the difference: the first one shows “status”=”1”, and the second one shows “status”=”3”.

    For info: I am running WordPress 5.4.2 with WP Abstracts Version 2.3.2.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Kevon Adonis

    (@kevonadonis)

    Hi,

    Thank you for pointing this out. I’m planning a new release in the coming week that addressing this and other smaller issues.

    Thank you,

    Kevon A.

    Thread Starter tplanche

    (@tplanche)

    Hi Kevon,

    The new release does not seem to have resolve this issue.
    I fixed it temporarily by implemented a kludge in dashboard/wpabstracts.dashboard.php:

    I replaced:

    <?php foreach($abstracts as $abstract){ ?>

    by:

    <?php foreach($abstracts as $abstracttp){ ?>
    <?php $abstract = wpabstracts_get_abstract($abstracttp->abstract_id); ?>

    And it now shows the right value of the ‘Status’ on the Dashboard page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘‘Status’ field not updating on Dashboard’ is closed to new replies.