Plugin Directory

Changeset 2464691


Ignore:
Timestamp:
01/29/2021 06:29:25 AM (5 years ago)
Author:
frier
Message:

2021-01-28 hotfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • books-papers/trunk/books-n-papers.php

    r2464386 r2464691  
    744744                    if(isset($_POST["tag" . $k]))
    745745                    { //relates tags with article
    746                         print_r("tag found : " . $_POST["tag" . $k]);
    747                         print_r("    check : " . $this->bridge->checkTag(sanitize_text_field($_POST["tag" . $k])) . "   \n");
    748746                        $this->bridge->addArticleTag($this->bridge->checkTag(sanitize_text_field($_POST["tag" . $k])), $art_id);
    749747                    }
     
    765763                    }
    766764                }
     765                if(isset($_POST["tag"]))
     766                { //relates tags with article
     767                    $this->bridge->addConferenceTag($this->bridge->checkTag(sanitize_text_field($_POST["tag"])), $art_id);
     768                }
     769                for($k = 0; $k <= 20; $k++)
     770                {
     771                    if(isset($_POST["tag" . $k]))
     772                    { //relates tags with article
     773                        $this->bridge->addConferenceTag($this->bridge->checkTag(sanitize_text_field($_POST["tag" . $k])), $art_id);
     774                    }
     775                }
    767776            } else if(sanitize_text_field($_POST["paperType"])=="book") //inserts book info
    768777            {
     
    786795                    { //relates every editor with book
    787796                        $this->bridge->addBookEditor($this->bridge->checkAuthor(sanitize_text_field($_POST["editor" . $k])), $art_id);
     797                    }
     798                }
     799                if(isset($_POST["tag"]))
     800                { //relates tags with article
     801                    $this->bridge->addBookTag($this->bridge->checkTag(sanitize_text_field($_POST["tag"])), $art_id);
     802                }
     803                for($k = 0; $k <= 20; $k++)
     804                {
     805                    if(isset($_POST["tag" . $k]))
     806                    { //relates tags with article
     807                        $this->bridge->addBookTag($this->bridge->checkTag(sanitize_text_field($_POST["tag" . $k])), $art_id);
    788808                    }
    789809                }
Note: See TracChangeset for help on using the changeset viewer.