Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visit label as argument can now be used #1475

Merged

Conversation

gluneau
Copy link
Contributor

@gluneau gluneau commented Jan 6, 2016

$visit_label was not getting set, so skipping the if statement.

second argument of an array of pselect does not need to be surrounded by single quotes.

@gluneau gluneau added the Bug PR or issue introducing/requiring bug fixes (not mutually exclusive with the Feature label) label Jan 6, 2016
@gluneau gluneau added this to the 16.04 milestone Jan 6, 2016
@@ -58,6 +58,7 @@
$query = "SELECT ID, subprojectID from session";
if (!empty($argv[1]) && $argv[1]!="confirm") {
$query .=" WHERE visit_label='$argv[1]'";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this query line required? It seems like it's done with a prepared statement below.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(and if it is, it should be escaped properly..)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed that first $query does not seem to be used at all, I will remove.

@codecov-io
Copy link

Current coverage is 10.93%

Merging #1475 into 16.04-dev will increase coverage by +0.08% as of 5fe5b4b

@@            16.04-dev   #1475   diff @@
=========================================
  Files             103     103       
  Stmts           17925   18025   +100
  Branches            0       0       
  Methods          1021    1021       
=========================================
+ Hit              1945    1971    +26
  Partial             0       0       
- Missed          15980   16054    +74

Review entire Coverage Diff as of 5fe5b4b

Powered by Codecov. Updated on successful CI builds.

@gluneau gluneau changed the title fix visit label not being used Visit label as argument will now be used Jan 7, 2016
@gluneau gluneau changed the title Visit label as argument will now be used Visit label as argument can now be used Jan 7, 2016
samirdas added a commit that referenced this pull request Jan 8, 2016
…verbose-enough

Visit label as argument can now be used
@samirdas samirdas merged commit a2ab235 into aces:16.04-dev Jan 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug PR or issue introducing/requiring bug fixes (not mutually exclusive with the Feature label)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants