Skip to content

Instantly share code, notes, and snippets.

Illegal element: classes and ids must have values.
Extracted source (around line #17):
14: -# If not, see http://www.gnu.org/licenses/agpl-3.0.txt.
15:
16: - content_for :title do
17: #{@code_name.description} Codes
18:
19: - content_for :tools do
<form style="display: inline;" method="post" action="/staged_messages/1/event">
<input id="event_id" type="hidden" value="1" name="event_id"/>
<a onclick="this.form.submit(); return false;" href="#">Assign lab result</a>
</form>
def best_name
return given_name unless self.given_name.blank?
return "#{first_name} #{last_name}".strip unless self.last_name.blank?
return user_name unless self.user_name.blank?
return uid
end
$ git branch
* diagnostic
elr-view
master
patch-event-list
$ git add .
$ git commit
Created commit 0b56606: Fixes issues regarding autocompletes and failed validation.
8 files changed, 21 insertions(+), 9 deletions(-)
$ git pull origin master:master
SELECT "events"."id" AS t0_r0, "events"."imported_from_id" AS t0_r1, "events"."state_case_status_id" AS t0_r2, "events"."event_name" AS t0_r3, "events"."event_onset_date" AS t0_r4, "events"."created_at" AS t0_r5, "events"."updated_at" AS t0_r6, "events"."outbreak_associated_id" AS t0_r7, "events"."outbreak_name" AS t0_r8, "events"."investigation_LHD_status_id" AS t0_r9, "events"."investigation_started_date" AS t0_r10, "events"."investigation_completed_LHD_date" AS t0_r11, "events"."review_completed_by_state_date" AS t0_r12, "events"."first_reported_PH_date" AS t0_r13, "events"."results_reported_to_clinician_date" AS t0_r14, "events"."record_number" AS t0_r15, "events"."MMWR_week" AS t0_r16, "events"."MMWR_year" AS t0_r17, "events"."lhd_case_status_id" AS t0_r18, "events"."type" AS t0_r19, "events"."event_queue_id" AS t0_r20, "events"."sent_to_cdc" AS t0_r21, "events"."age_at_onset" AS t0_r22, "events"."age_type_id" AS t0_r23, "events"."investigator_id" AS t0_r24, "events"."sent_to_ibis" AS t0_r25, "events"."a
def set_answer_code
if (question.is_multi_valued? && question.question_element.export_column_id.blank?)
begin
if question.data_type == :check_box
self.code = concat_checkbox_codes
else
self.code = question.question_element.value_set_element.value_elements.find_by_name(text_answer).code
end
rescue Exception => ex
# Nothing above should cause an exception, unless the form structure is off, in which case this code probably wouldn't even run. Just log a warning.
<?xml version="1.0" encoding="UTF-8"?>
<DataSources>
<DataSource>
<DataSourceName>Provider=Mondrian;DataSource=Pentaho</DataSourceName>
<DataSourceDescription>Pentaho BI Platform Datasources</DataSourceDescription>
<URL>http://localhost:8080/pentaho/Xmla?userid=joe&amp;password=password</URL>
<DataSourceInfo>Provider=mondrian</DataSourceInfo>
<ProviderName>PentahoXMLA</ProviderName>
<ProviderType>MDP</ProviderType>
<AuthenticationMode>Unauthenticated</AuthenticationMode>
$ git rebase master
First, rewinding head to replay your work on top of it...
Applying Turns some fields in event search to multi-select
.dotest/patch:122: trailing whitespace.
where_clause += " AND #{table}.#{field.to_s.chop} IN (" + options[field].collect { |id| sanitize_sql_for_conditions(["%s", id])}.join(',') + ")"
error: patch failed: webapp/app/helpers/application_helper.rb:204
error: webapp/app/helpers/application_helper.rb: patch does not apply
Using index info to reconstruct a base tree...
<stdin>:122: trailing whitespace.
where_clause += " AND #{table}.#{field.to_s.chop} IN (" + options[field].collect { |id| sanitize_sql_for_conditions(["%s", id])}.join(',') + ")"
# Database administrative login by UNIX sockets
local all postgres ident sameuser
# TYPE DATABASE USER CIDR-ADDRESS METHOD
#
local all all ident sameuser
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5