Skip to content

Commit 7a58153

Browse files
anhanh11001iamareebjamal
authored andcommitted
fix: bugs in Attendee Custom Form (#2151)
- Wrong UI text display - Wrong Form Identifer - Set page size to maximum custom form fetched possible Fixes: #2150
1 parent 61127cd commit 7a58153

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

app/src/main/java/org/fossasia/openevent/general/attendees/AttendeeApi.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ interface AttendeeApi {
2121
@GET("events/{id}/custom-forms")
2222
fun getCustomFormsForAttendees(
2323
@Path("id") id: Long,
24-
@Query("filter") filter: String
24+
@Query("filter") filter: String,
25+
@Query("page[size]") pageSize: Int = 22
2526
): Single<List<CustomForm>>
2627
}

app/src/main/java/org/fossasia/openevent/general/attendees/forms/FormIdentifier.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ object FormIdentifier {
88
val CITY = "city"
99
val STATE = "state"
1010
val COUNTRY = "country"
11-
val JOB_TITLE = "job_title"
11+
val JOB_TITLE = "jobTitle"
1212
val PHONE = "phone"
13-
val TAX_INFO = "tax_business_info"
14-
val BILLING_ADDRESS = "billing_address"
15-
val HOME_ADDRESS = "home_address"
16-
val SHIPPING_ADDRESS = "shipping_address"
13+
val TAX_INFO = "taxBusinessInfo"
14+
val BILLING_ADDRESS = "billingAddress"
15+
val HOME_ADDRESS = "homeAddress"
16+
val SHIPPING_ADDRESS = "shippingAddress"
1717
val COMPANY = "company"
18-
val WORK_ADDRESS = "work_address"
19-
val WORK_PHONE = "work_phone"
18+
val WORK_ADDRESS = "workAddress"
19+
val WORK_PHONE = "workPhone"
2020
val WEBSITE = "website"
2121
val BLOG = "blog"
2222
val TWITTER = "twitter"

app/src/main/res/layout/item_attendee.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,15 +274,15 @@
274274
android:layout_height="wrap_content"
275275
android:layout_marginBottom="@dimen/padding_medium"
276276
android:layout_marginTop="@dimen/padding_medium"
277-
android:hint="@string/work_address"
277+
android:hint="@string/address"
278278
android:visibility="gone"
279279
tools:visibility="visible">
280280

281281
<com.google.android.material.textfield.TextInputEditText
282282
android:id="@+id/address"
283283
android:layout_width="match_parent"
284284
android:layout_height="wrap_content"
285-
android:text="@{attendee.workAddress}"/>
285+
android:text="@{attendee.address}"/>
286286
</com.google.android.material.textfield.TextInputLayout>
287287
<com.google.android.material.textfield.TextInputLayout
288288
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense"

0 commit comments

Comments
 (0)